package com.ow.dva.module.park.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ow.dva.module.base.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 停车场区域表
 * </p>
 *
 * @author YanZengBao
 * @since 2020-02-19
 * @version V1.0
 */
@TableName("dva_park_area")
@ApiModel(value="ParkArea对象", description="停车场区域表")
public class ParkArea  implements Serializable  {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "停车场ID")
    @TableField("park_id")
    private String parkId;

    @ApiModelProperty(value = "停车场名称")
    @TableField("park_name")
    private String parkName;

    @ApiModelProperty(value = "区域名称")
    private String name;

    @ApiModelProperty(value = "区域编号")
    private String number;

    @ApiModelProperty(value = "预留字段(分区类型,暂不使用)")
    private Integer areaType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "添加时间")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParkId() {
        return parkId;
    }

    public void setParkId(String parkId) {
        this.parkId = parkId;
    }

    public String getParkName() {
        return parkName;
    }

    public void setParkName(String parkName) {
        this.parkName = parkName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getAreaType() {
        return areaType;
    }

    public void setAreaType(Integer areaType) {
        this.areaType = areaType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ParkArea{" +
            "id=" + id +
            ", name=" + name +
            ", number=" + number +
            ", areaType=" + areaType +
            ", createTime=" + createTime +
            ", parkId=" + parkId +
            ", parkName=" + parkName +
        "}";
    }

    public ParkArea() {
    }

    public ParkArea(String id, String parkId, String parkName, String name, String number, Integer areaType, Date createTime) {
        this.id = id;
        this.parkId = parkId;
        this.parkName = parkName;
        this.name = name;
        this.number = number;
        this.areaType = areaType;
        this.createTime = createTime;
    }
}
